﻿<?php include "../tools_config.php"; ?>
<?php require "../includes/get_btn.php";?>
<?php require "../includes/get_alert_class.php";?>

<?php require "../config/footer.php";?>

<link href="<?php echo get_option("tools_url");?>/style.css" rel="stylesheet">
<link href="<?php echo $url;?>content/css/bootstrap.css" rel="stylesheet">
<link href="<?php echo $url;?>content/css/bootstrap.min.css" rel="stylesheet">
<link href="<?php echo $url;?>content/css/main.css" rel="stylesheet">
<link href="<?php echo $url;?>content/css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo $url;?>content/css/button.css" rel="stylesheet">





<!-- Custom styles for this template -->
<link href="<?php echo get_option("tools_url"); ?>/content/css/navbar-fixed-top.css" rel="stylesheet">
<!-- Bootstrap Select Style -->
<link href="<?php echo get_option("tools_url"); ?>/content/css/bootstrap-select.min.css" rel="stylesheet">


<form class="form-horizontal" name="myForm" onsubmit="return false" role="form">
	<div class="text-center <?php echo get_alert_class('info'); ?>">
		使用方法：在下方文本框输入繁体或简体文字，然后点击要转之字体即可
	</div>
	<div class="form-group">
		<div class="col-sm-10 centerd">
			<textarea class="form-control" name="S1" rows="10" cols="86"></textarea>
		</div>
	</div>
	<div class="form-group text-center">
		从：<select id="from" class="selectpicker" onchange="onchange_convert(this);">
			<option value="cn" name="cn" selected="selected">内地（中国大陆）</option>
			<option value="tw" name="tw">台湾（中华民国）</option>
			<option value="hk" name="hk">港澳地区</option>
		</select>
		到：<select id="to" class="selectpicker">
			<option value="tw" name="tw" selected="selected">台湾（中华民国）</option>
			<option value="cn" name="cn">内地（中国大陆）</option>
			<option value="hk" name="hk">港澳地区</option>
		</select>
		编码：<select id="encode" class="selectpicker">
			<option value="utf" name="utf" selected="selectsed">Unicode</option>
			<option value="gbbig" name="gb">GBK/BIG5</option>
		</select>
		<button type="button" class="<?php echo get_btn(); ?>" name="convert" onclick="convert_string()">转换</button>
	</div>
	<div class="form-group">
		<div class="col-sm-10 centerd">
			<textarea class="form-control" name="S2" rows="10" cols="86"></textarea>
		</div>
	</div>
</form>
<?php
$footer = array(
	'extra_script' => array("GB2312TOBIG5.js", "GBCodeUnicode.js", "GB2312TOBIGGB.js", "BIG5TOGB2312.js", "BIGCodeUnicode.js", "BIG5TOGBBIG.js"),			//Extra Script File
);
?>
<script src="GB2312TOBIG5.js"></script>

<?php require "../footer.php";?>
<?php require "../includes/copyright_year.php";?>
<?php require "../config/footer.php";?>

<script src="GBCodeUnicode.js"></script>
<script src="BIG5TOGB2312.js"></script>
<script src="BIGCodeUnicode.js"></script>
<script src="<?php echo $url;?>content/js/ie-emulation-modes-warning.js"></script>
<script src="<?php echo $url;?>content/js/jquery-1.11.1.min.js"></script>

<?php get_footer($footer); ?>
